/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaex;

/**
 *
 * @author massimiliano.andreet
 */
public class WhileTest {
    static boolean condition() {
        double app=0.00;
        app = Math.random();
        System.out.println("\n" + app + "000 \n");
        boolean result = app < 0.85;
        System.out.print(result + ", ");
        return result;
        }
    public static void main(String[] args) {
        while (condition())
        System.out.println("Sono dentro 'while'");
        System.out.println("Sono uscito dal 'while'");
        
    }
}
